/*************************************************************************
> File Name: employ.h
> Author: hzy
> Created Time: 2023-08-17 19:46:48
> Description:
************************************************************************/
#ifndef _EMPLOY_H_
#define _EMPLOY_H_

#include <string>
using namespace std;

enum Post
{
    Boss = 1,
    Leader,
    Staff

};

class Person
{
private:
    static int number;
    int id;      // 工号
    string name; // 姓名
    Post post;   // 职位

public:
    Person(string myname, int postId);
    Person();
    void setName(string myname);
    void setID(int myid);
    void setPost(Post mypost);

    string getName();
    int getId();
    Post getPost();

    Person &operator=(const Person &other);

    friend ostream &operator<<(ostream &os, const Person &person);
};
#endif